﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FisheryPlatform.Entity;

namespace FisheryPlatform.Web.Admin.Modules.Post
{
    public partial class TermList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            /*
             this.pb_PageBar.PbModel.CurrentIndex = pageIndex;
            this.pb_PageBar.PbModel.PageCount = pageCount;
            this.pb_PageBar.PbModel.PageSize = pageSize;
            this.pb_PageBar.PbModel.IsForAjax = true;
            this.pb_PageBar.PbModel.AjaxPageClickCallback = "PageChanged({index})";
             */
        }

        public TermTaxonomyEnum Taxonomy
        {
            get;
            set;
        }

        public List<TermEntity> PostTermList
        {
            get;
            set;
        }

        public int CurrentIndex
        {
            set { this.pb_PageBar.PbModel.CurrentIndex = value; }
            get { return this.pb_PageBar.PbModel.CurrentIndex; }
        }

        public int PageCount
        {
            set { this.pb_PageBar.PbModel.PageCount = value; }
            get { return this.pb_PageBar.PbModel.PageCount; }
        }

        public int PageSize
        {
            set { this.pb_PageBar.PbModel.PageSize = value; }
            get { return this.pb_PageBar.PbModel.PageSize; }
        }

        public bool IsForAjax
        {
            set { this.pb_PageBar.PbModel.IsForAjax = value; }
            get { return this.pb_PageBar.PbModel.IsForAjax; }
        }

        public string AjaxPageClickCallback
        {
            set { this.pb_PageBar.PbModel.AjaxPageClickCallback = value; }
            get { return this.pb_PageBar.PbModel.AjaxPageClickCallback; }
        }
    }
}